#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_createreinf.sqf"
#include "x_setup.sqf"

private ["_start_pos", "_attack_pos", "_end_pos", "_vecs"];
__TRACE_1("","_this")

PARAMS_4(_start_pos,_attack_pos,_end_pos,_vecs);

if (isServer && {!isNil QGVAR(HC_CLIENT_OBJ)}) exitWith {
	[QGVAR(reinf), [GVAR(HC_CLIENT_OBJ), [_start_pos,_attack_pos,_end_pos,_vecs]]] call FUNC(NetCallEventSTO);
};

if (isNil QGVAR(No_Para_Reinforcement) || {!GVAR(No_Para_Reinforcement)}) then {
	[_start_pos,_attack_pos,_end_pos,_vecs] spawn FUNC(createpara3x);
} else {
	[_start_pos,_attack_pos,_end_pos,_vecs] spawn FUNC(createfootmen);
};
